package com.naiterui.ehp.bs.agent.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 经纪人数据统计-区域数据统计表
 *
 * @author yangfuya
 * @since 2022/2/22
 */
@Data
@Entity
@Table(name = "as_area_count")
public class AsAreaCount implements Serializable {
    private static final long serialVersionUID = 6230177313088683793L;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;
    /**
     * 大区Id
     */
    @Column(name = "area_id")
    private Long areaId;

    /**
     * 原大区Id
     */
    @Column(name = "old_area_id")
    private Long oldAreaId;

    /**
     * 省区Id
     */
    @Column(name = "provice_area_id")
    private Long provinceAreaId;

    /**
     * 生成时间
     */
    @Column(name = "generate_date")
    private Date generateDate;

    /**
     * 处方总量
     */
    @Column(name = "recipel_total")
    private Integer recipelTotal;

    /**
     * 图片问诊总量
     */
    @Column(name = "consult_total")
    private Integer consultTotal;

    /**
     * 视频问诊总量
     */
    @Column(name = "video_total")
    private Integer videoTotal;

    /**
     * 订单总量
     */
    @Column(name = "order_total")
    private Integer orderTotal;

    /**
     * 订单总价格
     */
    @Column(name = "order_price_total")
    private Integer orderPriceTotal;

    /**
     * 图片问诊总价格
     */
    @Column(name = "consult_price_total")
    private Integer consultPriceTotal;

    /**
     * 视频问诊总价格
     */
    @Column(name = "video_price_total")
    private Integer videoPriceTotal;

    /**
     * 已购数量
     */
    @Column(name = "paid_number")
    private Integer paidNumber;

    /**
     * 未购数量
     */
    @Column(name = "unpaid_number")
    private Integer unpaidNumber;

    /**
     * 续方总量
     */
    @Column(name = "repeat_number")
    private Integer repeatNumber;

    /**
     * 新增数量
     */
    @Column(name = "new_number")
    private Integer newNumber;

    /**
     * 已认证数量
     */
    @Column(name = "auth_number")
    private Integer authNumber;

    /**
     * 未认证数
     */
    @Column(name = "unauth_number")
    private Integer unauthNumebr;

    /**
     * 认证中数
     */
    @Column(name = "authing_number")
    private Integer authingNumebr;

    /**
     * 不通过数量
     */
    @Column(name = "no_pass_number")
    private Integer noPassNumber;

    /**
     * 下属经纪人数量
     */
    @Column(name = "agent_total")
    private Integer agentTotal;

}
